package com.qf.mapper;

import com.qf.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("select * from  sys_role where role_id=#{role_id}")
    Role selectRoleById(Long id);

    @Select("select * from sys_role")
    List<Role>selectAllRoles();
}
